package com.itheima.service;
import com.itheima.domain.Book;
import com.itheima.domain.User;
import entity.PageResult;
public interface BookService {
        PageResult selectNewBooks(Integer pageNum,Integer pageSize);
        Book findById(String id);
        Integer borrowBook(Book book);
        PageResult search(Book book,Integer pageNum,Integer pageSize);
        Integer addBook(Book book);

        Integer editBook(Book book);

        PageResult searchBorrowed(Book book, User user, Integer pageNum, Integer pageSize);
        boolean returnBook(String  id,User user);

    Integer returnConfirm(String id);



}




